package com.hzsk.lisence.mapper;

import com.hzsk.lisence.entity.SoftwareLicenseEntity;
import com.hzsk.lisence.entity.query.LisenceServiceQuery;
import com.hzsk.lisence.entity.response.LisenceData;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SoftwareLicenseMapper {

    Integer saveSoftwareLicense(SoftwareLicenseEntity softwareLicenseEntity);

    Integer updateSoftwareLicense(SoftwareLicenseEntity softwareLicenseEntity);


    List<LisenceData> getSoftwareLicenseByUserId(LisenceServiceQuery lisenceServiceQuery);

    SoftwareLicenseEntity selectAllById(@Param("id")Integer id);

    Integer delSoftwareLicense(@Param("id")Integer id);

    Integer statisticsBySoftwareId(@Param("softwareId")Integer softwareId);

    String selectZipNameById(@Param("id")Integer id);

    Integer  confirmSoftwareLicense(@Param("id")Integer id);


}
